function CategoryListManager() {
}

CategoryListManager.prototype = {

	// CRUD

	getElementId: function(element) {
		return element.id;
	},
	
	createEmptyElement: function() {
		return {
			id: 0,
			name: "",
			description: ""
		};
	},

	getLoadElementsFunction: function() {
		return categoryService.getCategories;
	},
	
	getDeleteElementFunction: function() {
		return categoryService.deleteCategory;
	},
	
	getStoreElementFunction: function() {
		return categoryService.storeCategory;
	},
	
	getAddElementFunction: function() {
		return categoryService.addCategory;
	},

	// Table

	createTableConfiguration: function() {
		var currentThis = this;
		var defaultDisplayCreator = this.createDefaultDisplayCreator();
		var defaultEditCreator = this.createDefaultEditCreator();
		return {
			"name": {
				"displayCreator": defaultDisplayCreator,
				"editCreator": defaultEditCreator
			},
			"description": {
				"displayCreator": defaultDisplayCreator,
				"editCreator": defaultEditCreator
			}
		};
	},

	createBinderForElement: function(element) {
		return this.createDefaultBinderForElement();
	}

};

CategoryListManager.prototype = jQuery.extend(DwrTableManager.prototype, CategoryListManager.prototype);